pc = 1
for a in range(2):
    for b in range(2):
        for c in range(2):
            for d in range(2):
                pa, pb, pc, pd = (d == 1), (c == 1), (c == 0), (pc == 0)
                if pa + pb + pc + pd == 2 and a + b + c + d == 1:
                    print(a, b, c, d)